package cn.starfire.sttool;

import cn.starfire.sttool.tools.JsonToExcelTool;
import cn.starfire.sttool.tools.ToolsMainApp;
import javafx.application.Application;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;

@SpringBootApplication
public class StToolApplication {

    public static void main(String[] args) {
        SpringApplication.run(StToolApplication.class, args);
    }

    // Spring Boot 启动完成后，启动 JavaFX
    @EventListener(ApplicationReadyEvent.class)
    public void launchGui() {
        Application.launch(ToolsMainApp.class);
    }
}
